<?php

	class Form
	{
		public static function OpenFormItem( $label = '', $labelWidth = 150, $itemWidth = 250 )
		{
			//$formItemCode = '<div style="width: 100%; padding: 3px 5px 3px 5px; margin: 0px 0px 25px 0px;"><div style="width: ' . $labelWidth . 'px; float: left; padding-top: 3px;">' . $label . '</div><div style="width: ' . $itemWidth . 'px; float: left">';
			$formItemCode = '<div class="form-item"><div class="form-item-key" style="width: ' . $labelWidth . 'px;">' . $label . '</div><div class="form-item-value" style="width: ' . $itemWidth . 'px;">';
			
			echo( $formItemCode );
		}
		
		public static function OpenFormItemSummary( $label = '', $labelWidth = 150, $itemWidth = 250 )
		{
			//$formItemCode = '<div style="width: 100%; padding: 3px 5px 3px 5px; margin: 0px 0px 25px 0px;"><div style="width: ' . $labelWidth . 'px; float: left; padding-top: 3px;">' . $label . '</div><div style="width: ' . $itemWidth . 'px; float: left">';
			$formItemCode = '<div class="form-item-summary"><div class="form-item-key" style="width: ' . $labelWidth . 'px;">' . $label . '</div><div class="form-item-value" style="width: ' . $itemWidth . 'px;">';
			
			echo( $formItemCode );
		}

		public static function CloseFormItem()
		{
			$formItemCode = '</div><div class="clear"></div></div>';
			
			echo( $formItemCode );
		}
		
		public static function OpenFormCategory( $categoryLabel )
		{
			$formCategoryCode = '<div class="form_category_border"><div class="form_category_header">' . $categoryLabel . '</div><div class="form_category_body">';
			
			echo( $formCategoryCode );
		}
		
		public static function CloseFormCategory()
		{
			$formCategoryCode = '<div class="clear"></div></div><div class="clear"></div></div>';
			
			echo( $formCategoryCode );
		}
	}

?>